package com.dmap.knowledge.vo;

import com.dmap.knowledge.po.Banner;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class BannerInfoOneVo implements Serializable {
    private String bannerId;             //bannerId
    private String companyNumber;       //公司名称
    private String lang;                //语言
    private int type;                   //类型
    private String imageUrl;            //图片地址
    private String title;               //标题
    private String desc;
    private String articleId;             //文章id
    private String jumpUrl;             //跳转路径
    private int recommendIndex;         //推荐指数
    private int status;                 //状态
    private int sort;                   //排序
    private long endTime;               //结束时间
    private long startTime;             //开始时间
    private List<BannerTagVo> tags = new ArrayList<>();     //Banner标签
    private String appNumber;          //app的相关信息
    private String appName;             //app名称
    
    public BannerInfoOneVo() {
    }
    
    public BannerInfoOneVo(Banner banner) {
        if (banner.getId() != null) {
            this.bannerId = banner.getId().toString();
            
        }
        if (banner.getCompanyNumber() != null) {
            this.companyNumber = banner.getCompanyNumber();
            
        }
        if (banner.getLang() != null) {
            this.lang = banner.getLang();
            
        }
        if (banner.getType() != null) {
            this.type = banner.getType();
            
        }
        if (banner.getImageUrl() != null) {
            this.imageUrl = banner.getImageUrl();
        }
        if (banner.getTitle() != null) {
            this.title = banner.getTitle();
        }
        if (banner.getDescription() != null) {
            this.desc = banner.getDescription();
            
        }
        if (banner.getJumpId() != null) {
            this.articleId = banner.getJumpId().toString();
            
        }
        if (banner.getJumpUrl() != null) {
            this.jumpUrl = banner.getJumpUrl();
            
        }
        if (banner.getRecommendIndex() != null) {
            this.recommendIndex = banner.getRecommendIndex();
            
        }
        if (banner.getStatus() != null) {
            this.status = banner.getStatus();
            
        }
        if (banner.getSort() != null) {
            this.sort = banner.getSort();
            
        }
        if (banner.getStartTime() != 0) {
            
            this.startTime = banner.getStartTime();
        }
        if (banner.getEndTime() != 0) {
            this.endTime = banner.getEndTime();
        }
        if (banner.getAppName() != null) {
            
            this.appName = banner.getAppName();
        }
        if (banner.getAppNumber() != null) {
            this.appNumber = banner.getAppNumber();
        }
        
    }
    
    public String getBannerId() {
        return bannerId;
    }
    
    public void setBannerId(String bannerId) {
        this.bannerId = bannerId;
    }
    
    public String getCompanyNumber() {
        return companyNumber;
    }
    
    public void setCompanyNumber(String companyNumber) {
        this.companyNumber = companyNumber;
    }
    
    public String getLang() {
        return lang;
    }
    
    public void setLang(String lang) {
        this.lang = lang;
    }
    
    public int getType() {
        return type;
    }
    
    public void setType(int type) {
        this.type = type;
    }
    
    public String getImageUrl() {
        return imageUrl;
    }
    
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getDesc() {
        return desc;
    }
    
    public void setDesc(String desc) {
        this.desc = desc;
    }
    
    public String getArticleId() {
        return articleId;
    }
    
    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }
    
    public String getJumpUrl() {
        return jumpUrl;
    }
    
    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }
    
    public int getRecommendIndex() {
        return recommendIndex;
    }
    
    public void setRecommendIndex(int recommendIndex) {
        this.recommendIndex = recommendIndex;
    }
    
    public int getStatus() {
        return status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public int getSort() {
        return sort;
    }
    
    public void setSort(int sort) {
        this.sort = sort;
    }
    
    public long getEndTime() {
        return endTime;
    }
    
    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }
    
    public long getStartTime() {
        return startTime;
    }
    
    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }
    
    public List<BannerTagVo> getTags() {
        return tags;
    }
    
    public void setTags(List<BannerTagVo> tags) {
        this.tags = tags;
    }
    
    public String getAppNumber() {
        return appNumber;
    }
    
    public void setAppNumber(String appNumber) {
        this.appNumber = appNumber;
    }
    
    public String getAppName() {
        return appName;
    }
    
    public void setAppName(String appName) {
        this.appName = appName;
    }
}
